public class Main {
    public static void main(String[] args) {
        Duck duck = new RedDuck();
        duck.fly();
        duck = new RubberDuck();
        // duck.setFlyBehavior(new CannotFly());
        duck.fly();
    }
}
